<?php
        $query="SELECT * FROM Klient";

		$wynik=mysql_query($query) or die('zapytanie niudane: '.mysql_error());
		echo "<form action=\"skrypty/klienci/akcje/modUsKli.php?login=$login\" method=\"post\">";
		echo "<table><tr>
				<td>Usun</td>
                <td>Modyfikuj</td>
				<td>Imie</td>
				<td>Nazwisko</td>
				<td>Adres</td>
				<td>Telefon</td>
				<td>Fax</td>
				<td>WWW</td>
				<td>email</td>
				<td>REGON</td>
                <td>NIP</td>
                <td>Firma</td>
			</tr>";

		while($line = mysql_fetch_array($wynik, MYSQL_ASSOC)){
			echo "<tr>";
            $flaga=true;
			foreach($line as $col){
                if($flaga){
                    echo "<td><input type=checkbox name=\"$col\"></td>";
                    echo "<td><Input type=radio name=\"mod\" value=\"$col\"></td>";
                    $flaga=false;
                }else{
                    echo "<td>$col</td>";
                }
            }

            echo "</tr>";
		}
		echo "</table>";
        echo "<input type=submit name=\"usun\" id=\"usun\" value=\"usuń\"> | ";
        echo "<input type=submit name=\"modyfikuj\" id=\"modyfikuj\" value=\"modyfikuj\">";
        echo "</form>";

?>
